#import cherrypy
<div class="actions" style="background: #eeeeec; border: 1px solid #babdb6; padding-left: 3px;">
	<div id="delete">
		<img src="/static/images/user-trash-pp.png" title="Click to delete"
			class="button" onclick="if (hasSelected(document.spentsForm.spentsCheckBox)) {deleteSpents();}
									else {alert('Has no selected itens.');}"/>
		Select: 
		<span class="button" onclick="selectAll(document.spentsForm.spentsCheckBox);">all</span>, 
		<span class="button" onclick="selectNone(document.spentsForm.spentsCheckBox);">none</span>
	</div>
	
	#if $doNavigation:
		<div id="navigation">
			#set showingOffset = $offset+1
			<strong>$showingOffset - $limit ($totalOfSpents)</strong>
			
			#if $offset > ($cherrypy.session.user.settings.numberOfShownSpent - 1):
				<span class="button" onclick="navigateBack($offset, $limit, '$query', $id);">< less | </span>
			#end if
	
			#if len($spents) >= ($cherrypy.session.user.settings.numberOfShownSpent - 2):
				<span class="button" onclick="navigateForward($offset, $limit, '$query', $id);">more ></span>
			#end if
		</div>
	#end if
</div>